/*
 * @Description: 最小公倍数
 * @Author: zzj
 * @Date: 2021-08-30 15:21:51
 * @LastEditors: zzj
 * @LastEditTime: 2021-09-01 17:18:15
 */

//最小公倍数
//console.log(gbs(5,7));
const readline = require('readline-sync')
var input = readline.question("please input two number,and use speace:");
console.log(input);
var a = input.split(' ')[0];
var b = input.split(' ')[1];
console.log(gbs(a,b));
function gbs(a,b){
        var c = a * b;
        for(i=1;i<=c;i++){
                if(i % a ===0 && i % b ===0){
                        return i;
                }
        }
}